<template>
  <div id="app">
    <router-view/>
  </div>
</template>

<script>
export default {
  name: 'App',
  created () {
    // 判断刷新浏览器后跳转首页
    if (this.$router.path !== '/index') {
      this.$router.replace('/index')
    }
  }
}
</script>

<style>
*{
  margin: 0;
  padding: 0;
  font-size:62.5%;
}
.viewIconClass{
  font-size:1.5rem;
  color:rgb(8, 189, 249);
  font-weight:bold;
  margin-left: 1rem;
}
.editIconClass{
  font-size:1.5rem;
  color:#ffe600;
  font-weight:bold;
  margin-left: 1rem;
}
.deleteIconClass{
  font-size:1.5rem;
  color:red;
  font-weight:bold;
  margin-left: 1rem;
}
</style>
